import { FilterConst } from "../../../../component/gconst/FilterConst";
import { Language } from "../../../../../extend/language/Language";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
type int = number;
//class DailyTitleBar
    
    export  class DailyTitleBar /* flash.display.Sprite */
    {
        constructor(arg1: int)
        {
            
            this._width = arg1;
            this.initUI();
            mouseChildren = false;
            mouseEnabled = false;
            return;
        }

        protected initUI(): void
        {
            this._nameTxt = new Object /* flash.text.TextField */();
            this._nameTxt.selectable = false;
            this._nameTxt.width = 100;
            this._nameTxt.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._nameTxt.textColor = 16646089;
            this._nameTxt.filters = [FilterConst.nameGlowFilter];
            this._nameTxt.x = 0;
            this._nameTxt.y = 0;
            this._nameTxt.text = Language.getString(20945);
            addChild(this._nameTxt);
            this._levelTxt = new Object /* flash.text.TextField */();
            this._levelTxt.selectable = false;
            this._levelTxt.width = 100;
            this._levelTxt.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._levelTxt.textColor = 16646089;
            this._levelTxt.filters = [FilterConst.nameGlowFilter];
            this._levelTxt.x = 100;
            this._levelTxt.y = 0;
            this._levelTxt.text = Language.getString(20946);
            addChild(this._levelTxt);
            this._timeTxt = new Object /* flash.text.TextField */();
            this._timeTxt.selectable = false;
            this._timeTxt.width = 100;
            this._timeTxt.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._timeTxt.textColor = 16646089;
            this._timeTxt.filters = [FilterConst.nameGlowFilter];
            this._timeTxt.x = 220;
            this._timeTxt.y = 0;
            this._timeTxt.text = Language.getString(20947);
            addChild(this._timeTxt);
            this._optTxt = new Object /* flash.text.TextField */();
            this._optTxt.selectable = false;
            this._optTxt.width = 100;
            this._optTxt.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._optTxt.textColor = 16646089;
            this._optTxt.filters = [FilterConst.nameGlowFilter];
            this._optTxt.x = 355;
            this._optTxt.y = 0;
            this._optTxt.text = Language.getString(20950);
            addChild(this._optTxt);
            this._line = GlobalClass.getBitmap(ImagesConst.SplitLine);
            this._line.x = -20;
            this._line.y = 22;
            this._line.width = this.width;
            addChild(this._line);
            return;
        }

        public /* override */ get width(): number
        {
            return this._width;
        }

        protected /* var */_nameTxt: Object /* flash.text.TextField */;

        protected /* var */_levelTxt: Object /* flash.text.TextField */;

        protected /* var */_timeTxt: Object /* flash.text.TextField */;

        protected /* var */_optTxt: Object /* flash.text.TextField */;

        protected /* var */_line: Object /* flash.display.Bitmap */;

        protected /* var */_width: int;
    }
